﻿using System.Data.SqlClient;
using System.Web.Configuration;

namespace DataAccess
{
    /// <summary>
    /// Summary description for Connection
    /// </summary>
    public class Connection
    {
        public static SqlConnection GetConnection()
        {
            var connectionString = WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
            var connection = new SqlConnection(connectionString);
            return connection;
        }
    }
}